﻿using UnityEngine;
using QFramework;

namespace HKTools
{
    public class CMD_ChangeFirstPersonPos : AbstractCommand
    {
        Transform pos_TF;
        bool isChangeRot;

        public CMD_ChangeFirstPersonPos(Transform pos_TF, bool isChangeRot)
        {
            this.pos_TF = pos_TF;
            this.isChangeRot = isChangeRot;
        }

        protected override void OnExecute()
        {
            this.GetSystem<IHK_FirstPersonCamSystem>().ChangeFirstPersonPos(pos_TF, isChangeRot);
        }
    }
}